package org.ddd.productdemo.simplified.integration.database;

import org.ddd.productdemo.simplified.service.model.Product;

import java.util.List;
import java.util.Optional;

public interface ProductRepository {

    List<Product> findAll();
    Optional<Product> findById(Long id);
    Product save(Product product);
    void deleteById(Long id);

}
